export function querySelector(selector) {
    return new Promise(resolve => {
        // 获取组件的高度
        const query = wx.createSelectorQuery();
        query.select(selector).boundingClientRect()
        query.exec(function(res){
            resolve(res)
        })
    })
}